﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="user.ascx.cs" Inherits="user" %>
<div id="account_tranzact">
<strong>Перевод средств</strong><br>
    <table class="advm_table">
    <tr>
        <td colspan="2" class="advm_td"><strong>Перевести деньги на другой счет:</strong></td>
    </tr>
    <tr>
        <td>ID счета:</td>
        <td>
            <asp:TextBox ID="tb_AccountId" runat="server" />
        </td>
    </tr>
    <tr>
        <td>Сумма:</td>
        <td>
            <asp:TextBox ID="tb_Summ" runat="server" />
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:Button ID="btn_SendCash" Text="Перевести" runat="server" OnClick="SendCash" />
        </td>
    </tr>
    </table>
</div>
<div id="ValidBlock" style="color: Red; text-align: center;" runat="server" >
</div>

<script language="javascript">

document.getElementById('account_tranzact').style.display = "none";
document.getElementById('account_history').style.display = "none";

    function AccountShow(arg)
    {
    var tranzact = document.getElementById('account_tranzact');
    var history = document.getElementById('account_history');
    var status = document.getElementById('account_status');
    
        switch(arg)
        {
            case '1': 
                status.style.display = "";
                history.style.display = "none";
                tranzact.style.display = "none";
                break;
            case '2': 
                status.style.display = "none";
                history.style.display = "none";
                tranzact.style.display = "";
                break;
            case '3': 
                status.style.display = "none";
                history.style.display = "";
                tranzact.style.display = "none";
                break;                                
                
        }
    }    
</script>

